//
//  NavigationContoller.swift
//  RoundCatPlay2
//
//  Created by 姜澎 on 2019/10/18.
//  Copyright © 2019 jiangpeng. All rights reserved.
//

import UIKit

class NavigationContoller: UINavigationController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
       
    }
    

    //    隐藏tabBarItem
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
    
        if self.viewControllers.count>0 {
            self.navigationController?.navigationBar.isTranslucent = true
            viewController.hidesBottomBarWhenPushed = true //跳转之后隐藏
        }
        
        super.pushViewController(viewController, animated: true)
    }
    
    
}
